python avoid index out of range

join shbcf.ru